import Request from "../request";
const request = new Request()

// 获取APP版本
export function getUserAppVersion(data) {
	return request.post({
		url: "/user/login/public/getUserAppVersion",
		data,
	});
}

// 注销账号
export function killMe(data) {
	return request.post({
		url: "/user/my/private/killMe",
		data,
	});
}

// 获取来源医生
export function getAllHospital(data) {
	return request.post({
		url: "/user/disease/private/getAllHospital",
		data,
	});
}

//登陆
export function login(data) {
	return request.post({
		url: "/user/login/public/login",
		data,
	});
}


//发送验证码
export function sendPhoneCode(data) {
	return request.post({
		url: "/user/login/public/sendPhoneCode",
		data,
	});
}


//退出
export function quit(data) {
	return request.post({
		url: "/user/login/private/quit",
		data,
	});
}


//发获取当前登录人信息
export function getLoginUserMessgae(data) {
	return request.post({
		url: "/user/my/private/getLoginUserMessgae",
		data,
	});
}

//修改头像或者昵称
export function updateUserMessage(data) {
	return request.post({
		url: "/user/my/private/updateUserMessage",
		data,
	});
}

//修改手机号
export function updateUserPhone(data) {
	return request.post({
		url: "/user/my/private/updateUserPhone",
		data,
	});
}


//我的账单
export function getMoneyRecord(data) {
	return request.post({
		url: "/user/my/private/getMoneyRecord",
		data,
	});
}
//获取患者列表
export function getPatientList(data) {
	return request.post({
		url: "/user/disease/private/getPatientList",
		data,
	});
}

//修改患者
export function updatePatient(data) {
	return request.post({
		url: "/user/disease/private/updatePatient",
		data,
	});
}


//修改患者前的查询
export function getOnePatient(data) {
	return request.post({
		url: "/user/disease/private/getOnePatient",
		data,
	});
}


//获取费用
export function getSysPrice(data) {
	return request.post({
		url: "/user/disease/private/getSysPrice",
		data,
	});
}


//添加诊疗订单
export function addDiseaseOrder(data) {
	return request.post({
		url: "/user/disease/private/addDiseaseOrder",
		data,
	});
}
//我的医生
export function getMyDoctorList(data) {
	return request.post({
		url: "/user/my/private/getMyDoctorList",
		data,
	});
}

//医生详情
export function getDoctorDetils(data) {
	return request.post({
		url: "/user/my/private/getDoctorDetils",
		data,
	});
}


//我的病例
export function getDiseaseCaseList(data) {
	return request.post({
		url: "/user/my/private/getDiseaseCaseList",
		data,
	});
}

//我的病例报告详情
export function getDiseaseCaseDetils(data) {
	return request.post({
		url: "/user/my/private/getDiseaseCaseDetils",
		data,
	});
}


//添加患者
export function addPatient(data) {
	return request.post({
		url: "/user/disease/private/addPatient",
		data,
	});
}

//获取问诊列表
export function getDiseaseOrderList(data) {
	return request.post({
		url: "/user/my/private/getDiseaseOrderList",
		data,
	});
}


//获取系统设置内容
export function getSysContent(data) {
	return request.post({
		url: "/user/login/public/getSysContent",
		data,
	});
}


//微信授权登陆
export function wxlogin(data) {
	return request.post({
		url: "/user/login/public/wxlogin",
		data,
	});
}



//获取消息列表
export function userGetImMessgaeList(data) {
	return request.post({
		url: "/user/news/private/userGetImMessgaeList",
		data,
	});
}


//确认上门时间
export function confirmVisitDate(data) {
	return request.post({
		url: "/user/news/private/confirmVisitDate",
		data,
	});
}



//根据问诊单号获取辅料订单
export function getMaterielProductByOrderNumber(data) {
	return request.post({
		url: "/user/news/private/getMaterielProductByOrderNumber",
		data,
	});
}


//修改诊疗订单
export function updateDiseaseOrder(data) {
	return request.post({
		url: "/user/disease/private/updateDiseaseOrder",
		data,
	});
}


//获取诊疗订单详情
export function getDiseaseOrderDetils(data) {
	return request.post({
		url: "/user/disease/private/getDiseaseOrderDetils",
		data,
	});
}


//根据订单号获取聊天记录
export function getChatRecord(data) {
	return request.post({
		url: "/user/news/private/getChatRecord",
		data,
	});
}


//获取订单描述内容
export function getOrderDepict(data) {
	return request.post({
		url: "/user/news/private/getOrderDepict",
		data,
	});
}


//发起支付
export function createPay(data) {
	return request.post({
		url: "/user/pay/private/createPay",
		data,
	});
}

// 小程序发起支付
export function createPayApplet(data) {
	return request.post({
		url: "/user/pay/private/createPayApplet",
		data,
	});
}

//测试回调接口
export function testWxNotify(data) {
	return request.post({
		url: "/user/pay/public/testWxNotify",
		data,
	});
}
//语音转文字接口内容
export function recordingRecognition(data) {
	return request.post({
		url: "/user/login/public/recordingRecognition",
		data,
	});
}



//获取微信小程序openId
// export function getAppletOpenId(data) {
// 	return request.post({
// 		url: "/user/login/private/getAppletOpenId",
// 		data,
// 	});
// }
export function getAppletOpenId(data) {
	return request.post({
		url: "/loginUser/public/getwxOpenId",
		data,
	});
}
//获取资讯列表
export function getMsgList(data) {
	return request.post({
		url: "/user/mediaNews/private/queryList",
		data,
	});
}

//获取资讯详情
export function getMsgItem(data) {
	return request.post({
		url: "/user/mediaNews/private/getByUid",
		data,
	});
}

// 添加评论
export function addComment(data) {
	return request.post({
		url: "/user/criticsInfo/public/add",
		data,
	});
}
// 查询评论
export function getComment(data) {
	return request.post({
		url: "/user/criticsInfo/public/queryTree",
		data,
	});
}

// 查询医生
export function getDoctorList(data) {
	return request.post({
		url: "/user/doctor/public/getDoctorList",
		data,
	});
}

// 查询疾病
export function getDiseaseList(data) {
	return request.get({
		url: "/user/doctor/public/getDiseaseList",
		data,
	});
}

